#ifndef _AST_H_
#define _AST_H_


#include "ami/ami.h"

#define AST_PORT					5038


typedef struct {
	unsigned int inited: 1;
	unsigned int connected: 1;
	unsigned int err: 1;
	
	int sock;
	char *tag;
	unsigned long long act_id;
	char action_id[80];

} ast_t;

typedef int(*astevent_cb_t) (ast_packet *);


extern int ast_init();
extern int ast_cmd(char *cmd);
extern int ast_list_commands();
// ...
extern int ast_is_registered(char *exten);


#endif
